#!/bin/bash

echo "🚀 Starting TMS MCP Server"
echo "📋 Make sure TMS gRPC server is running on localhost:50051"
echo "⏳ Starting MCP server..."

# Check if config file exists
if [ -f "config.toml" ]; then
    echo "📄 Using configuration file: config.toml"
    cargo run -- --config config.toml
else
    echo "📄 Using default configuration"
    cargo run -- --tms-server http://localhost:50051
fi